/*
 * rtc.h
 *
 *  Created on: 06-11-2012
 *      Author: Skeith
 */

#ifndef RTC_H_
#define RTC_H_

#include "../Startup/general.h"
#include "../Startup/lpc2xxx.h"
#include "../Startup/config.h"

#define CRYSTAL_FREQUENCY FOSC
#define PLL_FACTOR        PLL_MUL
#define VPBDIV_FACTOR     PBSD

void RtcInit(tU16 year, tU8 month, tU8 day, tU8 hour, tU8 minute, tU8 second);
tU16 RtcGetTick();


#endif /* RTC_H_ */
